package aaaa;

import javax.swing.plaf.basic.BasicInternalFrameTitlePane.MaximizeAction;

import sun.security.action.GetBooleanAction;

public class Test1 {

	public static void main(String[] args) {

		int[] arr1 = { 8, 1, 2, 4, 5, 6, 7 };
		int[] arr2 = { 81, 1, 222, 224, 5, 6, 7 };
		int[] arr3 = { 8321, 221, 2, 222242, 325, 62, 7 };
		
		int max = getMax(arr1,arr1[0]);
      max=  getMax(arr2, max);
	max = getMax(arr3, max);
       System.out.println(max);
	}
	
	public static int getMax(int[] arr ,int max) {

		for (int i = 0; i < arr.length; i++) {
			if (max < arr[i]) {
				max = arr[i];
			}
		}
		return max;
	}

}
